The Animals and Species resources let you catalog the marine creatures housed at Parque Marino del Pacífico Sur. Each animal belongs to exactly one species, one habitat, and carries a conservation status.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Fer-2202/Proyecto_Final/llms.txt
Use this file to discover all available pages before exploring further.
Write operations (POST, PUT, DELETE) require an authenticated admin session. GET endpoints are publicly accessible.
Animals
List animals
Filter by animal name (case-insensitive partial match).
Filter by species ID.
Filter by habitat ID.
Filter by conservation status ID.
Response fields
Unique identifier for the animal.
Common name of the animal. Maximum 30 characters. Animals are ordered alphabetically by name.
Age of the animal in years. Must be a positive integer.
Foreign key referencing the
Species resource. Deleting a species cascades to its animals.Foreign key referencing the
ConservationStatus resource.Create animal
Requires admin authentication.
Common name of the animal. Maximum 30 characters.
Age in years. Must be greater than or equal to zero.
ID of an existing species record.
ID of an existing conservation status record.
ID of an existing habitat record.
Retrieve animal
Primary key of the animal.
Update animal
Requires admin authentication. Use PUT to replace all fields; PATCH is not exposed by the router.
Primary key of the animal to update.
Updated common name. Maximum 30 characters.
Updated age in years.
Updated species ID.
Updated conservation status ID.
Updated habitat ID.
Delete animal
Requires admin authentication.
Primary key of the animal to delete.
Species
A species is a taxonomic classification that groups animals of the same kind. Each species record can include a scientific name, descriptive text, and a representative image.List species
Response fields
Unique identifier for the species.
Common name of the species. Maximum 30 characters. Must be unique across all species records. Ordered alphabetically.
Free-text description of the species. Optional.
Relative URL to the uploaded image. Files are stored under
media/species/. Returns null when no image has been uploaded.Binomial scientific name, up to 100 characters. Optional.
Create species
Requires admin authentication.
Common name of the species. Maximum 30 characters. Must be unique.
Free-text description. Optional.
Image file to upload. Stored under
media/species/. Optional.Binomial scientific name. Maximum 100 characters. Optional.
Retrieve species
Primary key of the species.
Update species
Requires admin authentication. The
<int:pk>/update/ route also exposes DELETE — see Delete species.Primary key of the species to update.
Updated common name. Maximum 30 characters.
Updated description. Optional.
Replacement image. Optional.
Updated scientific name. Optional.
Delete species
Requires admin authentication.
Primary key of the species to delete.
